<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$dsn = 'pgsql:dbname=avh_cache;host=203.55.15.63';
//$dsn = 'mysql:dbname=melisr;host=localhost';
$user = 'niels';
$password = 'dicranoloma';

try {
    $pgdb = new PDO($dsn, $user, $password);
} catch (PDOException $e) {
    echo 'Connection failed: ' . $e->getMessage();
}

//$pgdb->exec("SET client_encoding='sql_ascii'");

//$db->getAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);

?>
